package com.hg.design.creation.builder.mine;

import java.util.List;
import java.util.Optional;

public class TeamC implements Team {
    private Staff teamLeader;
    private List<Staff> teammateList;

    public TeamC(Staff teamLeader, List<Staff> teammateList) {
        this.teamLeader = teamLeader;
        this.teammateList = teammateList;
    }

    @Override
    public void showTeamLeader() {
        System.out.println("C组组长：" + this.teamLeader.getName());
    }

    @Override
    public void showTeammate() {
        System.out.print("C组组员：");
        this.teammateList.forEach(staff -> {
            System.out.print(staff.getName() + ", ");
        });
        System.out.println();
    }

    @Override
    public void showOne() {
        System.out.println("C组表演的第一个节目是：武术《太极拳》");
    }

    @Override
    public void showTwo() {
        System.out.println("C组表演的第二个节目是：演唱《我们工人有力量》");
    }

    @Override
    public void finishTask() {
        System.out.println("C组需要完成的任务是：20节竹管运水10米");
    }
}
